if "%1"=="Debug" goto debug

xcopy %QT_DIR%\bin\QtCore4.dll .\bin\Release\ /Q /Y /D
xcopy %QT_DIR%\bin\QtGui4.dll .\bin\Release\ /Q /Y /D
xcopy %QT_DIR%\bin\QtNetwork4.dll .\bin\Release\ /Q /Y /D
xcopy %QT_DIR%\bin\QtSql4.dll .\bin\Release\ /Q /Y /D
xcopy %QT_DIR%\bin\QtTest4.dll .\bin\Release\ /Q /Y /D
xcopy %QT_DIR%\bin\QtXml4.dll .\bin\Release\ /Q /Y /D

if not exist .\bin\Release\test mkdir .\bin\Release\test
if not exist .\bin\Release\plugins mkdir .\bin\Release\plugins
if not exist .\bin\Release\plugins\sqldrivers mkdir .\bin\Release\plugins\sqldrivers

xcopy %QT_DIR%\plugins\sqldrivers\qsqlmysql4.dll .\bin\Release\plugins\sqldrivers\ /Q /Y /D
xcopy %QT_DIR%\plugins\sqldrivers\qsqlodbc4.dll .\bin\Release\plugins\sqldrivers\ /Q /Y /D
xcopy %QT_DIR%\plugins\sqldrivers\qsqlpsql4.dll .\bin\Release\plugins\sqldrivers\ /Q /Y /D

xcopy %MYSQL_DIR%\lib\libmysql.dll .\bin\Release\ /Q /Y /D
xcopy %MYSQL_DIR%\lib\libmysqld.dll .\bin\Release\ /Q /Y /D

goto end

:debug

xcopy %QT_DIR%\bin\QtCored4.dll .\bin\Debug\ /Q /Y /D
xcopy %QT_DIR%\bin\QtCored4.pdb .\bin\Debug\ /Q /Y /D
xcopy %QT_DIR%\bin\QtGuid4.dll .\bin\Debug\ /Q /Y /D
xcopy %QT_DIR%\bin\QtGuid4.pdb .\bin\Debug\ /Q /Y /D
xcopy %QT_DIR%\bin\QtNetworkd4.dll .\bin\Debug\ /Q /Y /D
xcopy %QT_DIR%\bin\QtNetworkd4.pdb .\bin\Debug\ /Q /Y /D
xcopy %QT_DIR%\bin\QtSqld4.dll .\bin\Debug\ /Q /Y /D
xcopy %QT_DIR%\bin\QtSqld4.pdb .\bin\Debug\ /Q /Y /D
xcopy %QT_DIR%\bin\QtTestd4.dll .\bin\Debug\ /Q /Y /D
xcopy %QT_DIR%\bin\QtTestd4.pdb .\bin\Debug\ /Q /Y /D
xcopy %QT_DIR%\bin\QtXmld4.dll .\bin\Debug\ /Q /Y /D
xcopy %QT_DIR%\bin\QtXmld4.pdb .\bin\Debug\ /Q /Y /D

if not exist .\bin\Debug\test mkdir .\bin\Debug\test
if not exist .\bin\Debug\plugins mkdir .\bin\Debug\plugins
if not exist .\bin\Debug\plugins\sqldrivers mkdir .\bin\Debug\plugins\sqldrivers

xcopy %QT_DIR%\plugins\sqldrivers\qsqlmysqld4.dll .\bin\Debug\plugins\sqldrivers\ /Q /Y /D
xcopy %QT_DIR%\plugins\sqldrivers\qsqlodbcd4.dll .\bin\Debug\plugins\sqldrivers\ /Q /Y /D
xcopy %QT_DIR%\plugins\sqldrivers\qsqlpsqld4.dll .\bin\Debug\plugins\sqldrivers\ /Q /Y /D

xcopy %MYSQL_DIR%\lib\libmysql.dll .\bin\Debug\ /Q /Y /D
xcopy %MYSQL_DIR%\lib\libmysqld.dll .\bin\Debug\ /Q /Y /D

:end
